package com.example.demo.service;

import com.example.demo.pojo.User;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-01-07
 * Time: 11:23
 */

public interface UserService {
    /**
     * 注册功能
     * @param username
     * @param finalPassword
     * @return
     */
    boolean register(String username, String finalPassword);

    /**
     * 根据用户名查询用户
     */
    User getUserByUserName(String username);

    User getUerById(int uid);

}
